
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.Function;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Function entities.
 * 
 */
public interface FunctionDAO extends JpaDao<Function> {

	/**
	 * JPQL Query - findAllFunctions
	 *
	 */
	public Set<Function> findAllFunctions() throws DataAccessException;

	/**
	 * JPQL Query - findAllFunctions
	 *
	 */
	public Set<Function> findAllFunctions(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findFunctionByNameContaining
	 *
	 */
	public Set<Function> findFunctionByNameContaining(String name) throws DataAccessException;

	/**
	 * JPQL Query - findFunctionByNameContaining
	 *
	 */
	public Set<Function> findFunctionByNameContaining(String name, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findFunctionByMeno
	 *
	 */
	public Set<Function> findFunctionByMeno(String meno) throws DataAccessException;

	/**
	 * JPQL Query - findFunctionByMeno
	 *
	 */
	public Set<Function> findFunctionByMeno(String meno, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findFunctionByName
	 *
	 */
	public Set<Function> findFunctionByName(String name_1) throws DataAccessException;

	/**
	 * JPQL Query - findFunctionByName
	 *
	 */
	public Set<Function> findFunctionByName(String name_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findFunctionByPrimaryKey
	 *
	 */
	public Function findFunctionByPrimaryKey(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findFunctionByPrimaryKey
	 *
	 */
	public Function findFunctionByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findFunctionByMenoContaining
	 *
	 */
	public Set<Function> findFunctionByMenoContaining(String meno_1) throws DataAccessException;

	/**
	 * JPQL Query - findFunctionByMenoContaining
	 *
	 */
	public Set<Function> findFunctionByMenoContaining(String meno_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findFunctionById
	 *
	 */
	public Function findFunctionById(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findFunctionById
	 *
	 */
	public Function findFunctionById(Integer id_1, int startResult, int maxRows) throws DataAccessException;

}